﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Jok.Server.Infrastructure;

namespace Jok.Server.Main
{
    [ServiceContract(CallbackContract = typeof(IJokServiceCallback))]
    public interface IMainService
    {
        [OperationContract]
        bool Connect(int id);

        [OperationContract]
        bool Disconnect(int id);

        [OperationContract]
        bool IsConnected(int id);

        [OperationContract]
        void Command(int id, JokCommand Command);
    }
}
